<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var arr = ["a", "b", "c", 1, 2, 3]
        var object = {
            name: "chaohongji",
            age: "22"
        }
        document.write(arr.valueOf())
        document.write("<br>")
        document.write(arr.join("-"))
        document.write("<br>")
            //document.write(arr.reverse())
        document.write("<br>")
        document.write(arr.slice(2, 5))
        document.write("<br>")
        document.write(arr)
        document.write("<br>")
        console.log(arr.toLocaleString())
        console.log(arr.constructor)

        var bool = new Boolean("a")
        console.log(bool)
        console.log(Boolean(78))
        var a = new Date()
        var date = a.getFullYear() + "-" + a.getMonth() + "-" + a.getDate()
        var houmiao = Date.parse(2020 - 1 - 1)
        console.log(houmiao)
        console.log(a.getTime())
        console.log("hello".split(""))
        console.log(/\d/.test("0hello".charAt(0)))
        eval("for(var i=0;i<arr.length;i++){console.log(i)}")
        console.log(escape("school"))
        console.log(isFinite("sdf"))

        function fun1() {
            var a = 5,
                b = 6;
            return a * b
        }
        console.log(fun1)
        console.log(window)
        var test1 = {
            name: 'xiaochao',
            age: '90'
        }
        setInterval(function() {
                console.log(parseInt(Math.random() * 10))

            }, 1000)
            // setTimeout(function() {
            //     close()
            // }, 3000)
        false ? console.log("true") : console.log("false")
    </script>
    <!-- <script type="text/javascript">
        myWindow = window.open('', '', 'width=200,height=100')
        myWindow.document.write("This is 'myWindow'")
        myWindow.blur()
    </script> -->

</body>

</html>